package com.group.transaction.mapper;

import com.group.transaction.domain.Permission;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Set;

public interface PermissionMapper extends Mapper<Permission> {

    Set<String> selectValuesByUsername(@Param("username") String username);

    /**
     * 根据角色id查询权限
     * @return
     */
    List<Permission> queryPermissionByRoleId(Integer roleId);
}